package com.hrt.datasender.datacollect;

import com.btcode.common.MyLog;
import com.btcode.log.ILog;
import com.hrt.datasender.datacollect.serial.SerialLoader;

public class DataCollectMain {

    private ILog log;

    public void start() {

        log = MyLog.getInstance().getLogger(DataCollectMain.class.getName());

        try {
            SerialLoader.getInstance().loadSerial();
            DataGetter.init();
            log.info("启动数采模块成功");
        } 
        catch (Exception e) {
            log.error("启动数采模块出错", e);
        }

    }

}
